<%@ page contentType="text/html; charset=utf-8" import="java.net.InetAddress,common.*,java.sql.*,db.*,java.util.*"%>
<jsp:include page="/mobile/common/head.jsp"></jsp:include>
<%
UserSession userSession = (UserSession)session.getAttribute("user");
String login_id  = "";
if(userSession != null){
	login_id  = userSession.getLogin_id();
}

String login_nm = "";
String soc_no1 = "";
String soc_no2 = "";

String ent_id= CommonUtil.nvl((String)session.getAttribute("ent_id"));
String ent_nm = (String)request.getParameter("ent_nm")==null?(String)session.getAttribute("ent_nm"):(String)request.getParameter("ent_nm");

String giguan_yn = CommonUtil.nvl((String)session.getAttribute("giguan_yn"));
if (giguan_yn == null || giguan_yn.equals("")) giguan_yn = "N";

String ent_sub_yn = CommonUtil.nvl((String)session.getAttribute("ent_sub_yn"));
if (ent_sub_yn == null || ent_sub_yn.equals("")) ent_sub_yn = "N";

String menu_type 		= CommonUtil.nvl((String)session.getAttribute("menu_type")); 

String  member_group_1_nm="";
String  member_group_1_yn="";
String  member_group_2_nm="";
String  member_group_2_yn="";
String  member_group_3_nm="";
String  member_group_3_yn="";
String  member_group_4_nm="";
String  member_group_4_yn="";
String  member_group_5_nm="";
String  member_group_5_yn="";
String  member_group_6_nm=""; 
String  member_group_6_yn="";
String  member_group_7_nm="";
String  member_group_7_yn="";
String  member_group_8_nm="";
String  member_group_8_yn="";
String  member_group_9_nm="";
String  member_group_9_yn="";
String  member_group_10_nm="";
String  member_group_10_yn="";

String  ent_nm_print_yn="";
String  ent_confirm_print_yn="";

Connection con=null;
ArrayList list =null;
ArrayList list_group =null;
try {
	
	con = (new CommonConnect()).getConnection_ds1();
	String[] param=null;
	String[] param2=null;
	String queryStr ="";
	String queryStr2 = "";
//메인페이지의 리스트 내역을 가져온다.
	param= new String[2];
	param[0] = login_id;   
	param[1] = ent_id; 
	
	queryStr = "call edu_edu0103Select2(?,?)";	
	list = DAO.select(con,queryStr,param);
	
	param2= new String[1];
	param2[0] = ent_id;
	queryStr2 =  "call stu_edu1301SelectGroup(?)";
	list_group = DAO.select(con,queryStr2,param2);
	
	//System.out.println(list);
	
} catch (Exception e) {
	e.printStackTrace();
}finally {
	  try{
		  if (con!=null) con.close();
	  }catch(Exception ee){}
}


for (int i=0; list_group!=null && list_group.size() > i; i++){ 
	HashMap map = (HashMap)list_group.get(i);		
	member_group_1_nm = CommonUtil.nvl((String)map.get("member_group_1_nm"));
	member_group_1_yn = CommonUtil.nvl((String)map.get("member_group_1_yn"));
	
	member_group_2_nm = CommonUtil.nvl((String)map.get("member_group_2_nm"));
	member_group_2_yn = CommonUtil.nvl((String)map.get("member_group_2_yn"));

	member_group_3_nm = CommonUtil.nvl((String)map.get("member_group_3_nm"));
	member_group_3_yn = CommonUtil.nvl((String)map.get("member_group_3_yn"));
	
	member_group_4_nm = CommonUtil.nvl((String)map.get("member_group_4_nm"));
	member_group_4_yn = CommonUtil.nvl((String)map.get("member_group_4_yn"));
	
	member_group_5_nm = CommonUtil.nvl((String)map.get("member_group_5_nm"));
	member_group_5_yn = CommonUtil.nvl((String)map.get("member_group_5_yn"));
	
	member_group_6_nm = CommonUtil.nvl((String)map.get("member_group_6_nm"));
	member_group_6_yn = CommonUtil.nvl((String)map.get("member_group_6_yn"));
	
	member_group_7_nm = CommonUtil.nvl((String)map.get("member_group_7_nm"));
	member_group_7_yn = CommonUtil.nvl((String)map.get("member_group_7_yn"));
	
	member_group_8_nm = CommonUtil.nvl((String)map.get("member_group_8_nm"));
	member_group_8_yn = CommonUtil.nvl((String)map.get("member_group_8_yn"));
	
	member_group_9_nm = CommonUtil.nvl((String)map.get("member_group_9_nm"));
	member_group_9_yn = CommonUtil.nvl((String)map.get("member_group_9_yn"));
	
	member_group_10_nm = CommonUtil.nvl((String)map.get("member_group_10_nm"));
	member_group_10_yn = CommonUtil.nvl((String)map.get("member_group_10_yn"));
	
	ent_nm_print_yn = CommonUtil.nvl((String)map.get("ent_nm_print_yn"));
	ent_confirm_print_yn = CommonUtil.nvl((String)map.get("ent_confirm_print_yn"));
}


String edit_yn = "N";
String sms_rcv_yn = "Y";
String login_pw     = "";
String soc_no       = "";
String birth_dt     = "";
String birth_yy     = "";
String birth_mm     = "";
String birth_dd     = "";
String solar_cal_gb = "";
String norm_phone_no= "";
String phone1= "";
String phone2= "";
String phone3= "";
String cell_phone_no= "";
String c_phone1= "";
String c_phone2= "";
String c_phone3= "";
String email_id     = "";
String mail_id     = "";
String mail_host     = "";
String post_no      = "";
String post1        = "";
String post2        = "";
String post_addr    = "";
String detail_addr  = "";
String dept_cd      = "";
String class_cd     = "";
String fin_school   = "";
String up_cd   = "";
String ent_sub_id   = "";

String member_group_1_cd   = "";
String member_group_2_cd   = "";
String member_group_3_cd   = "";
String member_group_4_cd   = "";
String member_group_5_cd   = "";
String member_group_6_cd   = "";
String member_group_7_cd   = "";
String member_group_8_cd   = "";
String member_group_9_cd   = "";
String member_group_10_cd   = "";

int pw_length=0;
String f_pw="";

HashMap map  = null;

if (list!=null && list.size()> 0) {
    System.out.println("---------------->>>>list");
    map=(HashMap)list.get(0);
    edit_yn = "Y";
    login_id = CommonUtil.nvl(Crypto.DecodeBySType((String)map.get("login_id")));
    login_nm = CommonUtil.nvl((String)map.get("login_nm"));
    login_pw = CommonUtil.nvl(Crypto.DecodeBySType((String)map.get("login_pw")));
    soc_no = CommonUtil.nvl(Crypto.DecodeBySType((String)map.get("soc_no")));
    if(soc_no.length() > 6){
        soc_no1= soc_no.substring(0,6);
        soc_no2= soc_no.substring(6,13);
    }else{
        soc_no1= soc_no;
        soc_no2= "";
    }

    birth_dt = CommonUtil.nvl((String)map.get("birth_dt"));
    birth_yy = CommonUtil.nvl((String)map.get("birth_yy"));
    birth_mm = CommonUtil.nvl((String)map.get("birth_mm"));
    birth_dd = CommonUtil.nvl((String)map.get("birth_dd"));
    solar_cal_gb = CommonUtil.nvl((String)map.get("solar_cal_gb"));
    norm_phone_no= CommonUtil.nvl((String)map.get("norm_phone_no"));
    phone1= CommonUtil.nvl((String)map.get("phone1"));
    phone2= CommonUtil.nvl((String)map.get("phone2"));
    phone3= CommonUtil.nvl((String)map.get("phone3"));
    cell_phone_no = CommonUtil.nvl((String)map.get("cell_phone_no"));
    c_phone1= CommonUtil.nvl((String)map.get("c_phone1"));
    c_phone2= CommonUtil.nvl((String)map.get("c_phone2"));
    c_phone3= CommonUtil.nvl((String)map.get("c_phone3"));
    email_id = CommonUtil.nvl((String)map.get("email_id"));
    mail_id = CommonUtil.nvl((String)map.get("mail_id"));
    mail_host = CommonUtil.nvl((String)map.get("mail_host"));
    post_no= CommonUtil.nvl((String)map.get("post_no"));
    post1= CommonUtil.nvl((String)map.get("post1"));
    post2= CommonUtil.nvl((String)map.get("post2"));
    post_addr= CommonUtil.nvl((String)map.get("post_addr"));
    detail_addr= CommonUtil.nvl((String)map.get("detail_addr"));

    dept_cd= CommonUtil.nvl((String)map.get("dept_cd"),"");
    class_cd = CommonUtil.nvl((String)map.get("class_cd"),"");
    fin_school = CommonUtil.nvl((String)map.get("fin_school"),"");
    sms_rcv_yn = CommonUtil.nvl((String)map.get("sms_rcv_yn"),"");
    
    up_cd= CommonUtil.nvl((String)map.get("up_cd"),"");
    ent_sub_id= CommonUtil.nvl((String)map.get("ent_sub_id"),"");
    
    member_group_1_cd= CommonUtil.nvl((String)map.get("member_group_1_cd"),"");
    member_group_2_cd= CommonUtil.nvl((String)map.get("member_group_2_cd"),"");
    member_group_3_cd= CommonUtil.nvl((String)map.get("member_group_3_cd"),"");
    member_group_4_cd= CommonUtil.nvl((String)map.get("member_group_4_cd"),"");
    member_group_5_cd= CommonUtil.nvl((String)map.get("member_group_5_cd"),"");
    member_group_6_cd= CommonUtil.nvl((String)map.get("member_group_6_cd"),"");
    member_group_7_cd= CommonUtil.nvl((String)map.get("member_group_7_cd"),"");
    member_group_8_cd= CommonUtil.nvl((String)map.get("member_group_8_cd"),"");
    member_group_9_cd= CommonUtil.nvl((String)map.get("member_group_9_cd"),"");
    member_group_10_cd= CommonUtil.nvl((String)map.get("member_group_10_cd"),"");
  }

if(!login_pw.equals("")){
    pw_length = login_pw.length();
    if(pw_length>0){
      for(int i=0;i<pw_length;i++){
        f_pw+="*";
      }
    }
  }
  
  
if(menu_type.equals("C")){
	soc_no1 = "000000";
  	soc_no2 = "0000000";
}
%>

    
<script type="text/javascript" src="/js/commutil.js"></script>
<script language='javascript' src="/js/ajaxutil.js"></script>        


<script>
function init2(){
	form = document.mainform;
	
	<%if (giguan_yn.equals("Y")){ %>
    setEDU608T(form.up_cd,'<%=up_cd%>', '선택', '009|<%=ent_id%>');
    $('#up_cd').selectmenu('refresh'); 
    <%}%>
    
    <%if (ent_sub_yn.equals("Y")){ %>
    setEDU608T(form.ent_sub_id,'<%=ent_sub_id%>', '선택', '008|<%=ent_id%>');
    $('#ent_sub_id').selectmenu('refresh'); 
    <%}%>
    
	setEDU608T(form.dept_cd,'<%=dept_cd%>', '선택', '010|<%=ent_id%>');
    setEDU608T(form.class_cd,'<%=class_cd%>', '선택', '011|<%=ent_id%>');
    
    $('#dept_cd').selectmenu('refresh'); 
    $('#class_cd').selectmenu('refresh'); 
    
    <%if (member_group_1_yn.equals("Y")){ %>
    setEDU608T(form.member_group_1_cd,'<%=member_group_1_cd%>', '선택', '701|<%=ent_id%>');
    $('#member_group_1_cd').selectmenu('refresh'); 
    <%}%>
    
    <%if (member_group_2_yn.equals("Y")){ %>
    setEDU608T(form.member_group_2_cd,'<%=member_group_2_cd%>', '선택', '702|<%=ent_id%>');
    $('#member_group_2_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_3_yn.equals("Y")){ %>
    setEDU608T(form.member_group_3_cd,'<%=member_group_3_cd%>', '선택', '703|<%=ent_id%>');
    $('#member_group_3_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_4_yn.equals("Y")){ %>
    setEDU608T(form.member_group_4_cd,'<%=member_group_4_cd%>', '선택', '704|<%=ent_id%>');
    $('#member_group_4_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_5_yn.equals("Y")){ %>
    setEDU608T(form.member_group_5_cd,'<%=member_group_5_cd%>', '선택', '705|<%=ent_id%>');
    $('#member_group_5_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_6_yn.equals("Y")){ %>
    setEDU608T(form.member_group_6_cd,'<%=member_group_6_cd%>', '선택', '706|<%=ent_id%>');
    $('#member_group_6_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_7_yn.equals("Y")){ %>
    setEDU608T(form.member_group_7_cd,'<%=member_group_7_cd%>', '선택', '707|<%=ent_id%>');
    $('#member_group_7_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_8_yn.equals("Y")){ %>
    setEDU608T(form.member_group_8_cd,'<%=member_group_8_cd%>', '선택', '708|<%=ent_id%>');
    $('#member_group_8_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_9_yn.equals("Y")){ %>
    setEDU608T(form.member_group_9_cd,'<%=member_group_9_cd%>', '선택', '709|<%=ent_id%>');
    $('#member_group_9_cd').selectmenu('refresh');
    <%}%>
    
    <%if (member_group_10_yn.equals("Y")){ %>
    setEDU608T(form.member_group_10_cd,'<%=member_group_10_cd%>', '선택', '710|<%=ent_id%>');
    $('#member_group_10_cd').selectmenu('refresh');
    <%}%>
    
    
    this.auto_login   = document.getElementById("auto_login");
    this.showAll();
	
}

function up_change(f){
	setEDU608T(form.dept_cd,'', '선택', '010^'+f.value+'|<%=ent_id%>');
}

function showAll()
{
 // 목록을 클리어  
 //루프를 이용하여 스토리지 내용을 확인.
 
 var frm = document.mainform;
 
 for(var i=0;i<localStorage.length;i++)
 {
  var k=localStorage.key(i);
  	//alert("키:"+k +" 값:"+localStorage[k]);
  	  	
  	if(k == "auto_login"){
  		if(localStorage[k]== "Y"){
  			
  			frm.auto_login.checked = true; 
  			
  			$('#auto_login').attr('checked', true);         // 눈에는 안보이지만 체크 처리를 합니다.
  			$('#auto_login_label').addClass('ui-btn-active');     // 라벨에 활성화 색을 입힙니다.
  			$('#auto_login_label span span.ui-icon').removeClass('ui-icon-checkbox-off').addClass('ui-icon-checkbox-on');
  			// 체크 표시를 해줍니다.
  		}else{
  			frm.auto_login.checked = false; 
  		}
  	}
 }  
}
</script>

<script>
$(document).ready(function(){
$("#callAjax").click(function() {
	
	if(document.mainform.auto_login.checked == true){
   		localStorage["auto_login"]=auto_login.value;
	}else{
		delete localStorage["auto_login"];
	}
	
	$('#cmd').val('mypage_mobile_update');
	//alert($('#cmd').val());
	document.mainform.action="/MainServlet";
	document.mainform.submit();
	
	/*
	$.ajax({
		type:"POST",
		url:"https://graph.facebook.com/search?callback=?&q=watermelon&type=post",
		dataType:"jsonp",
		error:function() { alert("error"); },
		success:function(json) {
		if ( json.data ) {
		$.each( json.data, function(i, n) {
		var item = json.data[i];
		$('<li> ' + item.name + '</li> ')
		.appendTo('#ajaxResult');
		}); 
		$('#ajaxResult').listview('refresh'); 
		}
		}
	});
	*/
});
$("#Clear").click(function() {
	$("#ajaxResult").empty();
	});
});
</script>
<style>
		
		.my_text_label
		{
			width:120px !important;			
			display:inline-block !important;
		}
		.my_text_input
		{
			width:30% !important;
			display:inline-block !important;
		}
		
		.my_text_input1
		{
			width:35% !important;
			display:inline-block !important;
		}
		
		.my_text_input2
		{
			width:35% !important;
			display:inline-block !important;
		}
		
		.my_text_input3_1
		{
			width:19% !important;
			display:inline-block !important;
		}
		
		.my_text_input3_2
		{
			width:18% !important;
			display:inline-block !important;
		}
		
		.my_text_input3_3
		{
			width:18% !important;
			display:inline-block !important;
		}
		
</style>


<body onload="<%if (!menu_type.equals("C")){ %>init2();<%}%>">
<!-- 
<div data-role="page">
	<div data-role="header">
    	<h1>마이페이지</h1>
    </div>
    <div data-role="content">
    	<ul data-role="listview">
            <li><a href="#">준비중입니다.</a></li>
        </ul>
    </div>
</div>
-->
<div data-role="page">
	<div data-role="header" data-position="fixed">
    	<h1>MyPage</h1>
    	<a href="#" id="callAjax" data-icon="check" class="ui-btn-right" data-theme="c">Save</a>
    </div>
    <div data-role="content">
    <form name="mainform"  method="post" >   
      <input type="hidden" name="real_nm_yn" value="Y">
      <input type="hidden" name="id_confirm" value="">
      <input type="hidden" name="cmd" id="cmd" value="">
      <input type="hidden" name="edit_yn" value="<%=edit_yn%>">
      <input type="hidden" name="ent_id" value="<%=ent_id%>">

	  <input type="hidden" name=giguan_yn value="<%=giguan_yn%>">

	  <input type="hidden" name=ent_sub_yn value="<%=ent_sub_yn%>">
      
      <input type="hidden" name="id" value="<%=login_id%>">
      <input type="hidden" name="member_gb" value="1">
      <input type="hidden" name="view_id">
      <input type="hidden" name="view_pw">
      <input type="hidden" name="view_soc_no1">
      <input type="hidden" name="view_soc_no2">

	  <%if (menu_type.equals("C")){ %>
	  	<!-- 기업확인코드 -->
		<input type="hidden" name="ent_confirm_cd" value="1111">
	  	<!-- 소속부서  -->
		<input type="hidden" name="dept_cd" value="641">
	  	<!-- 직급  -->
		<input type="hidden" name="class_cd" value="313">
		<input type="hidden" name="cd_confirm" value="Y">
	  <%}else{ %>
		<input type="hidden" name="cd_confirm" value="">
	  <%} %>	

	  <%if (giguan_yn.equals("N")){ %>
		<input type="hidden" name="up_cd" value="<%=up_cd%>"> 
	  <%} %>

	  <%if (ent_sub_yn.equals("N")){ %>
		<input type="hidden" name="ent_sub_id" value="<%=ent_sub_id%>"> 
	  <%} %>
	  
	  
	  <input type="hidden" name="soc_no1" value="<%=soc_no1 %>">
      <input type="hidden" name="soc_no2" value="<%=soc_no2 %>">
            
            
	   
	 <div class="ui-body ui-body-b">
	   
	  <%if (ent_nm_print_yn.equals("Y")){ %>
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>기업명:</b></label>
	         <label for="select-choice-a" class="my_text_input"><%=ent_nm %></label>
	  </div>
	  <%} %>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>ID:</b></label>
	         <label for="select-choice-a" class="my_text_input"><%=login_id %><input type="hidden" name="login_id" value="<%=login_id %>"></label>
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>이름:</b></label>
	         <label for="select-choice-a" class="my_text_input"><%=login_nm %><input type="hidden" name="login_nm" value="<%=login_nm %>"></label>
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>비밀번호:</b></label>
	         <input type="password" class="my_text_input" name="login_pw" id="login_pw" value="<%=login_pw%>"  />
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>비밀번호확인:</b></label>
	         <input type="password" class="my_text_input" name="login_pw_confirm" id="login_pw_confirm" value="<%=login_pw%>"  />
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>이메일:</b></label>
	         <br>
	         <input type="email" class="my_text_input1" name="mail_id" id="mail_id" value="<%=mail_id %>" />
	         @
	         <input type="email" class="my_text_input2" name="mail_host" id="mail_host" value="<%=mail_host %>"  />
	  </div>
	  
	  <%if (!menu_type.equals("C")){ %>
	  	<%if (ent_sub_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b>소속기업:</b></label>
		   <select name="ent_sub_id" id="ent_sub_id" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (giguan_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b>소속기관:</b></label>
		   <select name="up_cd" id="up_cd" onchange="up_change(this)" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b>부서:</b></label>
		   <select name="dept_cd" id="dept_cd"  >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
		  
		  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b>직급:</b></label>
		   <select name="class_cd" id="class_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
		
		<%if (member_group_1_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_1_nm %>:</b></label>
		   <select name="member_group_1_cd" id="member_group_1_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_2_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_2_nm %>:</b></label>
		   <select name="member_group_2_cd" id="member_group_2_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_3_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_3_nm %>:</b></label>
		   <select name="member_group_3_cd" id="member_group_3_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_4_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_4_nm %>:</b></label>
		   <select name="member_group_4_cd" id="member_group_4_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_5_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_5_nm %>:</b></label>
		   <select name="member_group_5_cd" id="member_group_5_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_6_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_6_nm %>:</b></label>
		   <select name="member_group_6_cd" id="member_group_6_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_7_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_7_nm %>:</b></label>
		   <select name="member_group_7_cd" id="member_group_7_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_8_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_8_nm %>:</b></label>
		   <select name="member_group_8_cd" id="member_group_8_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_9_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_9_nm %>:</b></label>
		   <select name="member_group_9_cd" id="member_group_9_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  	
	  	<%if (member_group_10_yn.equals("Y")){ %>
	  	  <div data-role="fieldcontain">
		   <label for="select-choice-a" class="my_text_label"><b><%=member_group_10_nm %>:</b></label>
		   <select name="member_group_10_cd" id="member_group_10_cd" >
		   <option value="">선택하세요</option>
		   </select>
		  </div>
	  	<%} %>
	  <%} %>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>생년월일:</b></label>
	         <br>
	         <input type="number" class="my_text_input3_1" name="birth_yy" id="birth_yy" value="<%=birth_yy %>" />년	         	
	         <input type="number" class="my_text_input3_2" name="birth_mm" id="birth_mm" value="<%=birth_mm %>"  />월
	         <input type="number" class="my_text_input3_3" name="birth_dd" id="birth_dd" value="<%=birth_dd %>"  />일
	  </div>
	  
	  
	  <div data-role="fieldcontain">
	   <label for="select-choice-a" class="my_text_label"><b>양력/음력:</b></label>
	   <select name="solar_cal_gb" id="solar_cal_gb" data-role="slider">
	    <option value="1" <% if(solar_cal_gb.equals("1")){ %> selected <% } %>>양력</option>
	    <option value="2" <% if(solar_cal_gb.equals("2")){ %> selected <% } %> >음력</option>
	   </select> 
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>전화번호:</b></label>
	         <br>
	         <input type="tel" class="my_text_input3_1" name="phone1" id="phone1" value="<%=phone1 %>" />-	         	
	         <input type="tel" class="my_text_input3_2" name="phone2" id="phone2" value="<%=phone2 %>"  />-
	         <input type="tel" class="my_text_input3_3" name="phone3" id="phone3" value="<%=phone3 %>"  />
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>핸드폰:</b></label>
	         <br>
	         <input type="tel" class="my_text_input3_1" name="c_phone1" id="c_phone1" value="<%=c_phone1 %>" />-	         	
	         <input type="tel" class="my_text_input3_2" name="c_phone2" id="c_phone2" value="<%=c_phone2 %>"  />-
	         <input type="tel" class="my_text_input3_3" name="c_phone3" id="c_phone3" value="<%=c_phone3 %>"  />
	  </div>
	  
	  <div data-role="fieldcontain">
	   <label for="select-choice-a" class="my_text_label"><b>SMS 수신:</b></label>
	   <select name="sms_rcv_yn" id="sms_rcv_yn" data-role="slider">
	    <option value="Y" <% if(sms_rcv_yn.equals("Y")){ %> selected <% } %>>허용</option>
	    <option value="N" <% if(sms_rcv_yn.equals("N")){ %> selected <% } %> >거절</option>
	   </select> 
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>우편번호:</b></label>
	         <br>
	         <input type="number" class="my_text_input1" name="post1" id="post1" value="<%=post1 %>" />
	         -
	         <input type="number" class="my_text_input2" name="post2" id="post2" value="<%=post2 %>"  />
	  </div>
	  
	  <div data-role="fieldcontain">
	         <label for="select-choice-a" class="my_text_label"><b>주소:</b></label>
	         <br>
	         <input type="text" class="my_text_input1" name="post_addr" id="post_addr" value="<%=post_addr %>" />
	         
	         <input type="text" class="my_text_input2" name="detail_addr" id="detail_addr" value="<%=detail_addr %>"  />
	         	         
	  </div>
	  
	  <div data-role="fieldcontain">
	         <input type="checkbox" name="auto_login" id="auto_login" value="Y"/>
			 <label for="auto_login" id="auto_login_label">자동으로 로그인</label>
	  </div>
	  <!--  
	  <div data-role="fieldcontain">
	   <label for="slider-a">Slider:</label>
	    <input type="range" name="slider" id="slider-a" value="0" min="0" max="100"  />
	  </div>
	  
	  
	  <div data-role="fieldcontain">
	  <fieldset data-role="controlgroup" data-type="horizontal">
	      <legend>Font styling:</legend>
	      <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" />
	   <label for="checkbox-6a">b</label>
	
	   <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" />
	   <label for="checkbox-7a"><em>i</em></label>
	
	   <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" />
	   <label for="checkbox-8a">u</label>    
	     </fieldset>
	  </div>
	 
	  <div data-role="fieldcontain">
	      <fieldset data-role="controlgroup">
	       <legend>Choose a pet:</legend>
	            <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" />
	            <label for="radio-choice-1a">Cat</label>
	
	            <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2"  />
	            <label for="radio-choice-2a">Dog</label>
	
	            <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3"  />
	            <label for="radio-choice-3a">Hamster</label>
	
	            <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4"  />
	            <label for="radio-choice-4a">Lizard</label>
	      </fieldset>
	  </div>
	  
	  
	  
	  <div data-role="fieldcontain">
	   <label for="select-choice-a" class="select">Choose shipping method:</label>
	   <select name="select-choice-a" id="select-choice-a">
	    <option value="standard">Standard: 7 day</option>
	    <option value="rush">Rush: 3 days</option>
	    <option value="express">Express: next day</option>
	    <option value="overnight">Overnight</option>
	   </select>
	  </div>
	  -->
	  
	  </div>
  </form>	  
  </div>
  
  <jsp:include page="/mobile/common/footer.jsp"></jsp:include>
</div>


</body>
</html>
